<template>
  <div>
    <span>选择喜欢的专栏</span>
    <hr />
    <input type="checkbox" v-model="checkbox" value="科幻" /> <span>科幻</span>
    <input type="checkbox" v-model="checkbox" value="喜剧" /> <span>喜剧</span>
    <input type="checkbox" v-model="checkbox" value="动漫" /> <span>动漫</span>
    <input type="checkbox" v-model="checkbox" value="冒险" /> <span>冒险</span>
    <input type="checkbox" v-model="checkbox" value="科技" /> <span>科技</span>
    <input type="checkbox" v-model="checkbox" value="军事" /> <span>军事</span>
    <input type="checkbox" v-model="checkbox" value="娱乐" /> <span>娱乐</span>
    <input type="checkbox" v-model="checkbox" value="奇闻" /> <span>奇闻</span>
    <ul>
      <li v-for="(val, index) in checkbox" :key="index">{{ val }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      checkbox: [],
    };
  },
};
</script>

<style>
</style>